package com.mmdccj.yugu.service;

import com.mmdccj.yugu.entity.Post;
import com.mmdccj.yugu.entity.User;

import java.util.List;

/**
 * @Author: star_
 * @date: 2023-11-25 17:26
 */
public interface UserService {
    User getUserByAccount(String account);

    User getUserById(String id);

    void insertUser(User user);

    User getUserByEmail(String email);

    boolean isUser(String account);

    String getUserNameById(String id);

    User getUserByMusicId(String id);

    boolean updateUserInfo(String id, String name, String introduce);

    List<User> getCommentsUsers(List<Post> post);

    List<User> getUsersByIds(String[] ids);

    User getPublicUserInfo(String userId);

    List<String> getUserIdsByMusicIds(List<String> ids);

    List<User> getPublicUserListInfoByUserIds(List<String> ids);

    String getAvatar(String userId);

    boolean updateAvatar(String id, String avatar);

    List<User> getCollectUsers(String musicListId);

    boolean isPhone(String phone);
}
